
Aufbau/Verteilung auf der Platte
================================

Block    Erklrung
----------------------------------------------

        +-----------------------------------+
 0      |   ATARI-Kompatibler Rootblock     | 
        |   (Bootloader/Partition-Infos)    |
        +-----------------------------------+
 1-3    |   Protar-Partitioninfos           |
        |                                   |
        +-----------------------------------+
 4-23   |   Protar-Treiber-Software         |
        |                                   |
        |                                   |
        +-----------------------------------+
 24-32  |   Platz fr weitere Rootblcke im |
        |   'XGM'-Format                    |
        +-----------------------------------+
 33     |   Partition 0                     |
        .                                   .
        .                                   .
        
 xx     +-----------------------------------+
        |   Partition 1                     |
        .                                   .
        .                                   .
        
        

Rootblock-/ATARI-Partitions-Format (Block 0):
============================================

Offset  Symbol      Gre   Beschreibung
-----------------------------------------------------------------------------

                            +-----------------------------------------------+
$0000   st_bootload 1W      |   Opcode (BRA.S)                              |
                            +-----------------------------------------------+
$0002   st_magic    1L      |   Magic 'crac'                                |
$0003   st_magic2   1W      |   Magic, bei Protar-Platten 'HD', sonst 'SH'  |
$0004   st_reserved 1L      |                                               |
                            +-----------------------------------------------+
$0008   st_bootcode ...     |   Das Bootload-Programm                       |
							|                                               |
                            +-----------------------------------------------+
$001E   st_minsecsiz 1W		|   Minimale Sektorgre (fr System-Buffer)    |
                            +-----------------------------------------------+
$0020   st_mediach  1B		|   Flag fr "Media change"-Untersttzung       |
                            +-----------------------------------------------+
$0022   st_bootcode2 ...    |   Das Bootload-Programm                       |
							|                                               |
                            +-----------------------------------------------+
$01C2   st_hdsize   1L      |   Plattengre in Sektoren                    |
                            +-----------------------------------------------+
$01C6   st_part0    12B     |   ATARI-Partitions-Eintrag 0                  |
                            +-----------------------------------------------+
$01D2   st_part1    12B     |   ATARI-Partitions-Eintrag 1                  |
                            +-----------------------------------------------+
$01DE   st_part2    12B     |   ATARI-Partitions-Eintrag 2                  |
                            +-----------------------------------------------+
$01EA   st_part3    12B     |   ATARI-Partitions-Eintrag 3                  |
                            +-----------------------------------------------+
$01FE   st_1234     1W      |   Ausgleichwort (alle 512 Byte mssen $1234   |
                            |   ergeben)                                    |
                            +-----------------------------------------------+


<ATARI-Partitions-Eintrag>
 ========================

Offset  Symbol      Gre   Beschreibung
----------------------------------------------------------------------------
 0      stp_flag    1B      $81 bootbar, $01 existent
 1      stp_id      3B      Kennung wie 'GEM', 'IBM' (oder 'XGM' fr Zeiger 
                            auf weiteren Rootblock)
 4      stp_start   1L      Start-Sektor der Partition
 8      stp_size    1L      Partitionsgre in Sektoren


Protar-Partition-Informations-Format:
====================================

Block   Offset  Beschreibung
------------------------------------------------------

                +-----------------------------------+
    1   $0000   |   Interne Branch-Opcodes          |
                +-----------------------------------+
    1   $0010   |   Protar-Volume-Info              |
                +-----------------------------------+
    1   $0040   |   Protar-Partitions-Eintrag 0     |
                +-----------------------------------+
    1   $0070   |   Protar-Partitions-Eintrag 1     |
                +-----------------------------------+
    1   $00A0   |   Protar-Partitions-Eintrag 2     |
                +-----------------------------------+
    1   $00D0   |   Protar-Partitions-Eintrag 3     |
                +-----------------------------------+
    1   $0100   |   Protar-Partitions-Eintrag 5     |
                +-----------------------------------+
    1   $0130   |   Protar-Partitions-Eintrag 6     |
                +-----------------------------------+
    1   $0160   |   Protar-Partitions-Eintrag 7     |
                +-----------------------------------+
    1   $0190   |   Protar-Partitions-Eintrag 8     |
                +-----------------------------------+
    10  $01C0   |   Protar-Partitions-Eintrag 9     |
                +-----------------------------------+
    1/2 $01F0   |   Protar-Partitions-Eintrag 10    |
                +-----------------------------------+
    2   $0020   |   Protar-Partitions-Eintrag 11    |
                +-----------------------------------+


<Protar-Volume-Info>
 ==================

Offset  Symbol      Gre   Beschreibung
----------------------------------------------------------------------------
  0     v_magi1     1L      Magic 'V1.0'
  4     v_typ       1W      Gerte-Typ (2=Harddisk,3=Cartridge, 4=Streamer)
  6     v_state     1W      Gerte-Flags (2=Media-Change-Erkennung ntig)
  8     v_size      1L      Kapazitt in kBytes
 12     v_part      1W      Anzahl der Partitionen
 14     v_magi2     1W      Magic 'ST'
 16     v_name      13B     Produktname (NULL-Byte-abgeschlossen)
 29     v_magi3     19B		'CRAC GMBH '
 55		v_date		4B		Treiber-Versions-Datum, Format YYCCMMDD


<Protar-Partition-Eintrge>
 =========================

Offset  Symbol      Gre   Beschreibung
----------------------------------------------------------------------------
  0     pp_start    1L      Start-Sektor
  4     pp_end      1L      End-Sektor
  8     pp_bsize    1L      Kapazitt in kBytes
 12     pp_flag     1W      <Protar-Status-Flags> (siehe unten)
 14     pp_typ      3B      Kennung wie 'GEM', 'IBM' o.a.
 17     pp_pw       13B     Passwort (NULL-Byte-abgeschlossen)
 30     pp_drv      1B      Laufwerks-Nummer (2=C, 3=D, ...)
 31     pp_name     13B     Partitionsname
 44     pp_bytpsec  1W      Logische Sektorgre (512,1024, ...) 
 44     pp_magic    1W      Magic 'ST' 


<Protar-Status-Flags>
 -------------------

Bit     Symbol      Maske   Beschreibung
----------------------------------------------------------------------------
  0     PA_EXIST    $0001   Partition existiert
  7     PA_BOOT     $0080   Partition ist ein Boot-Laufwerk
  8     PA_RDONLY   $0100   Partition besitzt Schreibschutz
  9     PA_PASSWD   $0200   Partition ist passwort-geschtzt
 10     PA_FORCE    $0400   Partition ist fixiert
 11     PA_EXCLUS   $0800   Partition ist exclusive
 12     PA_BFORCE   $1000   Partition ist fixiertes Bootlauferk


Benutzte System-Vektoren und Variablen
======================================

Addresse    Symbol          Beschreibung
----------------------------------------------------------------------------
$84         gemdos_vec      Patchroutine fr ACC-Bootfehler wird eingehngt
$88         aesvdi_vec      wird whrend der Bootphase umgeleitet
$404        etv_critic      wird zur Fehlerausgabe benutzt
$408        etv_term        ^C wird whrend der Bootphase abgefangen
$42A		resvector		Im Falle einer eignen CookieJar-Installation
							wird diese beim Reset gelscht.
$43E        flock           Semaphore beim HD-Zugriff
$446        _bootdev        wird beim Booten gesetzt
$472        hdv_bpb         zeigt auf Getbpb()-Routine mit XBRA 'PRTR'
$476        hdv_rw          zeigt auf Rwabs()-Routine mit XBRA 'PRTR'
$47E        hdv_mediach     zeigt auf Mediach()-Routine mit XBRA 'PRTR'
$484        conterm         Tastaturrepeat wird in Bootphase ausgeschaltet
$4B2		_bufl			2 Zeiger auf die GEMDOS-System-Buffer
$4BA        _hz_200         Zeitschleifen
$4C2        _drvbits        Laufwerkseintragungen
$4C6        _dskbufp        Puffer fr ungerade Adressen
$4F2        _sysbase        TOS-Versionsbestimmung/Lnder-Erkennung
$516        pun_ptr         Zeiger auf eine AHDI 3.0-kompatible Struktur
$5A0		_cookies		Falls keine CookieJar existiert, wird eine
							angelegt. Es wird ein Cookie "PRTR" 
							eingetragen.
